import request from '@/utils/request'

// 查询站点列表
export function listStation(query) {
    return request({
        url: '/station/list',
        method: 'post',
        data: query
    })
}

// 查询站点详细
export function getStation(id) {
    return request({
        url: '/station/' + id,
        method: 'get'
    })
}

// 新增站点
export function addStation(data) {
    return request({
        url: '/station',
        method: 'post',
        data: data
    })
}

// 修改站点
export function updateStation(data) {
    return request({
        url: '/station',
        method: 'put',
        data: data
    })
}

// 删除站点
export function delStation(id) {
    return request({
        url: '/station/' + id,
        method: 'delete'
    })
}

// 导出站点
export function exportStation(query) {
    return request({
        url: '/station/export',
        method: 'get',
        params: query
    })
}

// 下载站点导入模板
export function importTemplate() {
    return request({
        url: '/station/importTemplate',
        method: 'get'
    })
}
// 获取站点
export function stationDictList() {
    return request({
        url: '/station/dictList',
        method: 'get'
    })
}
